<?php
/**
 * Created by PhpStorm.
 * User: yuanzh
 * Date: 2015-11-20
 * Time: 11:31
 */
namespace srvs;

use app\models\KeywordModel;

class KeywordService {

    public function getAllKeyword(){
        $model=new KeywordModel();
        return $model->getAllKeyword();
    }

    public function findKeywordById($process_id){
        $model=new KeywordModel();
        return $model->findKeywordById($process_id);
    }

    public function insertKeyword($data){
        $model=new KeywordModel();
        return $model->insertKeyword($data);
    }

    public function updateKeyword($data,$process_id){
        $model=new KeywordModel();
        return $model->updateKeyword($data,$process_id);
    }

    public function deleteKeyword($process_id){
        $model=new KeywordModel();
        return $model->deleteKeyword($process_id);
    }

    public function findKeywordByName($keyword)
    {
        $model=new KeywordModel();
        return $model->findKeywordByName($keyword);
    }

}